package com.yunji.common.event;

import com.yunji.common.event.entity.EventData;

/**
 * @author : peter-zhu
 * @date : 2024/11/1 13:46
 * @description : TODO
 **/
public interface EventBus {

    <T> void publishAsync(EventData<T> event);

    <T> void publish(EventData<T> event) throws Exception;
}
